<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.wy17113.controller.servlet.*"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	
	String message = (String) request.getAttribute("message");
	if (message == null)
		message = "";
		
	String message1 = (String) request.getAttribute("message1");
	if (message1 == null)
		message1 = "";
	
	String fromId = request.getParameter("fromId");
	if (fromId == null)
		fromId = "";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<title>171173</title>
		<link href="css/css.css" rel="stylesheet" type="text/css" />
		
<script language="javascript">
function checkLogin(){
	var name = document.getElementById("loginAccount").value;
	var pass = document.getElementById("loginPasseord").value;
	
	if(name == '' || pass == ''){
		alert("用户名或密码不能为空！");
		return false;
	}else{
		document.loginForm.action = "doUser.do?opers=login";
		document.loginForm.submit();
	}
}

</script>
	</head>

	<body>
		<div class="top">
		<form name="loginForm" method="post" action="" onsubmit="return false;">
			<div class="top_box center">
				<ul>
					<li class="logo">
						<a href="<%=basePath %>index.jsp"><img src="images/logo.gif" width="279" height="99"
								title="17113" />
						</a>
					</li>
					<li class="right">
						<dl>
							<dd class="dd_one">
								<input name="loginAccount" id="loginAccount" class="input_one" type="text" />
							</dd>
							<dd class="dd_two">
								<input name="loginPasseord" id="loginPasseord" class="input_one" type="password" />
							</dd>
							<dd class="dd_three">
								<input type="image" src="images/pic_05.gif" onclick="javascript:checkLogin();"/>
								<br />
								<font color="red"><%=message %></font><br />
								<a href="/doJok.do?opers2=showJoks">忘记密码?</a>
							</dd>
						</dl>
					</li>
				</ul>
			</div>
		</form>
		</div>
		<div class="content center">
			<ul>
				<li class="ctt_left">
					&nbsp;
				</li>
				<li class="ctt_right">
				<form name="registForm" method="post" action="doUser.do?opers=regist">
					<table width="305" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="79" height="45" align="right">
								用 户 名:
							</td>
							<td width="226">
								<input type="text" name="account" id="account"
									class="input_two" />
							</td>
						</tr>
						<tr>
							<td height="45" align="right">
								密 码：
							</td>
							<td>
								<input type="password" name="password" id="password"
									class="input_two" />
							</td>
						</tr>
						<tr>
							<td height="45" align="right">
								确认密码：
							</td>
							<td>
								<input type="password" name="r-password" id="r-password"
									class="input_two" />
							</td>
						</tr>
						<tr>
							<td height="45" align="right">
								电子邮箱：
							</td>
							<td>
								<input type="text" name="email" id="email"
									class="input_two" />
							</td>
						</tr>
						<tr>
							<td height="50" colspan="2" align="center">
								<input type="image" src="images/pic_06.gif" /><br/><br/>
								<input id="fromId" name="fromId"  type="hidden" value="<%=fromId %>"/>
								<font color="red"><%=message1 %></font>
							</td>
						</tr>
					</table>
				</form>
				</li>
			</ul>
		</div>
		<div class="bottom">
			<div class="bottom_box center">
				版权所有 &copy;2011 北京17113.cc. 保留所有权利. 冀ICP备11028198号
			</div>
		</div>
	</body>
</html>

